<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  /*王佳鑫*/
  function Base(props) {
    this.props = props;
    console.log(this.props)
  }

  function A(props) {
    // 1. 寄生
    Base.call(this, props);
  }

  // 组合
  A.prototype = Object.create(Base.prototype)
  A.prototype.constructor = A;

</script>
</body>
</html>
